package core.genetic.crossover;

import utility.*;
import core.genetic.*;

public class NoCrossover implements Crossover{

	@Override
	public Individual crossover(Individual ind1, Individual ind2) {

		int length = ind1.getLength();
		Individual ind = new Individual(length);
		for (int i=0; i<length; i++)
			ind.setGene(i, ind1.getGene(i));
		
		return ind;

	}

}
